umask 022
alias vi='vim'
export EDITOR=vim
export CC=gcc
OS=$(uname | tr '[:upper:]' '[:lower:]')
[[ $OS == freebsd ]] && alias make=gmake

[[ -n $SOAR_DIR ]] || export SOAR_DIR=/opt/soar
export PATH=$PATH:$SOAR_DIR/bin:$SOAR_DIR/svcenv/lite/tool

export PATH=$PATH:$SVCENV_DIR/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$SVCENV_DIR/lib

alias cdp="cd $SVCENV_DIR"
alias cdh="cd $SVCENV_DIR/src/include"
alias cds="cd $SVCENV_DIR/src"

export BIN=$SVCENV_DIR/bin
export ETC=$SVCENV_DIR/etc
export LOG=$SVCENV_DIR/log

export SVCENV_CNFG=$SVCENV_DIR/etc/svcenv.cnfg

#--------#
# oracle #
#--------#
export ORACLE_SID=oradb                                     # SET
export ORACLE_BASE=/opt/oracle                              # SET
export NLS_LANG=American_America.UTF8                       # SET
export NLS_DATE_FORMAT=YYYYMMDDHH24MISS

# 9i
#export ORACLE_HOME=$ORACLE_BASE/product/9.2.0               # SET
#export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data

# 11g
export ORACLE_HOME=$ORACLE_BASE/product/11.1.0              # SET
export ORA_NLS10=$ORACLE_HOME/nls/data
export NLS_TIMESTAMP_FORMAT=YYYYMMDDHH24MISS

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
PATH=$PATH:$ORACLE_HOME/bin
